//
//  SetHvacCtrlPrecisionApi.m
//  SiterLib
//
//  Created by Henry on 2023/3/15.
//

#import "SetHvacCtrlPrecisionApi.h"
@interface SetHvacCtrlPrecisionApi()

@property(nonatomic,assign)float presion;

@end
@implementation SetHvacCtrlPrecisionApi

-(id)initWithDevId:(NSString *)thingName withPresion:(float)presion{
    if(self = [super init]){
        self.thingName = thingName;
        self.presion = presion;
    }
    return self;
}


-(id)getTopic{
    return [NSString stringWithFormat:@"/command/platform/%@",self.thingName];
}

-(id)getCommandContent{
    return @{@"command":@"SetTemperatureStep",@"param":@{@"value":@(self.presion)}};
}

-(id)getSubcribeTopic{
    return [NSString stringWithFormat:@"$aws/things/%@/shadow/name/%@/update/accepted",self.thingName,self.thingTypeName];
}


@end
